package com.example.administrator.damaiwang.Activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.administrator.damaiwang.R;
import com.example.administrator.damaiwang.fragment.DetailsFragment;

public class DetailsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        int position = getIntent().getIntExtra("position", 0);
        setContentView(R.layout.activity_dtails);
        getSupportFragmentManager().beginTransaction().add(R.id.ll_details,new DetailsFragment(position)).commit();

    }
}
